<template>
    <div id="home">
        <top-tabbar title="新疆大屏"/>

        <div class="center_btn" @click="rate">
            <img src="~assets/img/home/home-center.png" alt="">
        </div>

        <div @click="goOne">
            <second-level class="left_btn secondLevel" text='工单来源' path='workSource'>
                <img src="~assets/img/home/gdly.png" alt="工单来源">
            </second-level>
        </div>

        <div @click="goTwo">
            <second-level class="right_btn secondLevel" text='业务类别' path='workcategory'>
                <img src="~assets/img/home/ywlb.png" alt="业务类别">
            </second-level>
        </div>

        <div @click="goThree">
            <second-level class="bottom_btn secondLevel" text='坐席状态' path='workTake'>
                <img src="~assets/img/home/zxzz.png" alt="坐席状态">
            </second-level>
        </div>

    </div>
</template>

<script>
    import topTabbar from 'components/common/topTabbar/topTabbar'
    import secondLevel from 'views/home/secondLevel/secondLevel'

    export default {
        name: "Home",
        components: {
            topTabbar,
            secondLevel
        },
        data() {
            return {

            }
        },
        created() {

        },
        methods: {
            rate() {
                // this.$router.push('workRate')
                let routeData = this.$router.resolve({
                    path:"/workRate",
                    query:{}
                });
                window.open(routeData.href,"_blank");
            },
            goOne(){
                let routeData = this.$router.resolve({
                    path:"/workSource",
                    query:{}
                });
                window.open(routeData.href,"_blank");
            },
            goTwo(){
                let routeData = this.$router.resolve({
                    path:"/workcategory",
                    query:{}
                });
                window.open(routeData.href,"_blank");
            },
            goThree(){
                let routeData = this.$router.resolve({
                    path:"/workTake",
                    query:{}
                });
                window.open(routeData.href,"_blank");
            },
        }
    }
</script>

<style scoped>
    #home {
        position: relative;
        background: url("../../assets/img/app/app_bg.png") no-repeat center;
        background-size: 100% 100%;
        width: 1920px;
        height: 1080px;
        box-sizing: border-box;
    }

    .center_btn {
        width: 542px;
        height: 403px;
        position: absolute;
        text-align: center;
        top: 322px;
        left: 691px;
        background: url("../../assets/img/home/center_bottom_bg.png") no-repeat center;
        background-size: 542px 403px;
    }

    .center_btn img {
        width: 396px;
        height: 385px;
    }

    .left_btn {
        position: absolute;
        top: 496px;
        left: 49px;
    }

    .right_btn {
        position: absolute;
        top: 535px;
        right: 71px;
    }

    .bottom_btn {
        position: absolute;
        /*top:80%;*/
        left: 796px;
        bottom:20px;
    }

</style>
